# -*- coding: UTF-8 -*-
import time
from job import run_today
from job import test_100_days
from apscheduler.schedulers.blocking import BlockingScheduler

def run():
    sched = BlockingScheduler()
    # 时间： 周一到周五每天早上9点25, 执行run_today
    # sched.add_job(run_today, 'cron', day_of_week='mon-fri', hour=9, minute=10)
    sched.add_job(run_today, 'interval', seconds = 20)
    # sched.add_job(run_today, 'interval', seconds = 60)
    sched.start()

if __name__ == "__main__":
    #run()
    test_100_days()